-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First step to install cxx_module #92
First step to install cxx_module #92
Conversation
Now it install the following
@neatudarius what do you think about that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good. The only bit which I'm a bit concerned about is disabling g++
on Linux.
@@ -38,7 +16,8 @@ jobs: | |||
matrix: | |||
# TODO: sanitizer: [debug, release, asan, usan, tsan, lsan, msan] | |||
preset: [debug, release] | |||
compiler: [g++-14, clang++-19] | |||
# TODO: compiler: [g++-15, clang++-19] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g++
is the default compiler on Linuxes. I understand that modules are only [properly] implemented with g++-15
but it seems unfortunate to remove the default compiler entirely: is it possible to setup cmake
to use modules only for some compilers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be possible, fmt, boost do so
Is g++15 available to install on ubuntu 24.04?
If so, we should try it.
On macOS, I have only g++14 which fail to compile the module code.
# Note that scanning is only performed if C++20 or higher is enabled for the target. Scanning for modules in the target's | ||
# sources belonging to file sets of type CXX_MODULES is always performed. | ||
# not needed: set(CMAKE_CXX_SCAN_FOR_MODULES ON) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had problems without this definition. Adding it resulted in things building on MacOS. Probably this part of the code can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
fixes issue #93